import Vue from 'vue'
import VueRouter from 'vue-router'
import filmsRoutes from './modules/films'
import CommonRoutes from './modules/common'
import videoRouters from './modules/video'
Vue.use(VueRouter)

const routes = [

    //重定向
    ...CommonRoutes,
    //电影/电影院
    ... filmsRoutes,
    //视频
    ...videoRouters
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
